package com.ruoyi.ipms_crm.entity;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 合同对象 ipms_contract
 * 
 * @author 卢星宏
 * @date 2022-04-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IpmsContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同id */
    private Integer contractId;

    /** 合同编号（唯一） */
    @Excel(name = "合同编号", readConverterExp = "唯=一")
    private String contractNo;

    /** 客户id（甲方） */
    @Excel(name = "客户id", readConverterExp = "甲=方")
    private Integer customerId;

    /** 员工id（乙方） */
    @Excel(name = "员工id", readConverterExp = "乙=方")
    private Integer empId;

    /** 业务类型字典 */
    @Excel(name = "业务类型字典")
    private String contractCaseTypeId;

    /** 代理服务费 */
    @Excel(name = "代理服务费")
    private BigDecimal contractServiceCost;

    /** 官方费用（如专利续费） */
    @Excel(name = "官方费用", readConverterExp = "如=专利续费")
    private BigDecimal contractThirdCost;

    /** 专利id */
    @Excel(name = "专利id")
    private Integer patendId;

    /** 合同状态 */
    @Excel(name = "合同状态")
    private String contractStatusId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Integer version;

    /** 逻辑删除(0表示未删除、1表示删除) */
    @Excel(name = "逻辑删除(0表示未删除、1表示删除)")
    private String isDelete;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contractId", getContractId())
            .append("contractNo", getContractNo())
            .append("customerId", getCustomerId())
            .append("empId", getEmpId())
            .append("contractCaseTypeId", getContractCaseTypeId())
            .append("contractServiceCost", getContractServiceCost())
            .append("contractThirdCost", getContractThirdCost())
            .append("patendId", getPatendId())
            .append("contractStatusId", getContractStatusId())
            .append("version", getVersion())
            .append("isDelete", getIsDelete())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}